package com.yvon.maple.service.msg.core.handler.handler;

import com.yvon.maple.service.msg.core.common.domain.TaskInfo;
import com.yvon.maple.service.msg.core.common.enums.ChannelType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author : Yvon
 * @since : 2022-03-17
 */
@Slf4j
@Component
public class SmsHandler extends Handler{

    public SmsHandler() {
        channelCode = ChannelType.SMS.getCode();
    }

    @Override
    public void handler(TaskInfo taskInfo) {
        log.info("短信发送成功{}", taskInfo.toString());
    }
}
